package Solutions
func twoSum(numbers []int, target int) []int {
	l, r := 0, len(numbers)-1
	ans := make([]int, 0)
	for l < r {
		t := numbers[l] + numbers[r]
		if t == target {
			ans = []int{l, r}
			break
		} else if t < target {
			l++
		} else {
			r--
		}
	}
	return ans
}
